package com.longlong.service.impl;

import com.longlong.entity.RegistrationRacetrack;
import com.longlong.mapper.RegistrationRacetrackMapper;
import com.longlong.service.RegistrationRaceTrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegistrationRaceTrackServiceImpl implements RegistrationRaceTrackService {

    @Autowired
    private RegistrationRacetrackMapper registrationRacetrackMapper;

    @Override
    public Object getRegistrationRaceTrackList() {
        List<RegistrationRacetrack> lists = registrationRacetrackMapper.selectList(null);
        //将赛程表述的信息转为数组形式
        for (RegistrationRacetrack list : lists) {

            System.out.println(list);

        }
        return lists;
    }
}
